package com.realgodo.site.web.tag;

import org.springside.modules.web.struts2.Struts2Utils;

import com.realgodo.site.common.Constant;
import com.realgodo.site.entity.space.Space;

public class HeaderController {

	private String spaceName;

	public String execute() {

		Space space = (Space) Struts2Utils.getSession().getAttribute(
				Constant.LOGIN_SPACE);
		if (null != space) {
			spaceName = space.getName();
		}
		return "header";
	}

	public String getSpaceName() {
		return spaceName;
	}

	public void setSpaceName(String spaceName) {
		this.spaceName = spaceName;
	}

}
